shortcuts: Separate gestures in search results
authorFelix Riemann <friemann@gnome.org>
Sun, 3 Jan 2016 14:32:38 +0000 (15:32 +0100)
committerFelix Riemann <friemann@gnome.org>
Sun, 3 Jan 2016 16:07:23 +0000 (17:07 +0100)
Gestures where shown separately from other shortcuts in the search
results before. This restores that behaviour.

https://bugzilla.gnome.org/show_bug.cgi?id=760097

gtk/gtkshortcutswindow.c

index 4a614785bdd103bc56d411c12d82666248a7f871..09e6a07c249f37fa75cb408b592561277cfda3a0 100644 (file)
@@ -237,7 +237,10 @@ gtk_shortcuts_window_add_search_item (GtkWidget *child, gpointer data)
       keywords = g_utf8_strdown (str, -1);
 
       g_hash_table_insert (priv->keywords, item, keywords);
-      gtk_container_add (GTK_CONTAINER (priv->search_shortcuts), item);
+      if (shortcut_type == GTK_SHORTCUT_ACCELERATOR)
+        gtk_container_add (GTK_CONTAINER (priv->search_shortcuts), item);
+      else
+        gtk_container_add (GTK_CONTAINER (priv->search_gestures), item);
 
       g_free (title);
       g_free (accelerator);